package com.zyj.exam_app.testPaper_manager.mapper;

import com.zyj.exam_app.testPaper_manager.bean.TestPaperBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface TestPaperMapper {
    /**
     * 查询所有试卷
     * @return
     */
    public List<TestPaperBean> findAllTestPapers();

    /**
     * 根据ID删除一条试卷数据
     * @param testPaperId
     * @return
     */
    public int deleteOneTestPaperById(@Param("testPaperId") String testPaperId);

    /**
     * 新增一条试卷数据
     * @param testPaper
     * @return
     */
    public int insertOneTestPaper(TestPaperBean testPaper);

    /**
     * 根据ID查询试卷
     * @return
     */
    public TestPaperBean selectTestPaperById(@Param("testPaperId") String testPaperId);
}
